<template>
  <div class="empty-container">
    <Icon type="empty" />
    <p>{{ text }}</p>
  </div>
</template>

<script>
import Icon from "@/components/Icon";
export default {
  name: "Empty",
  components: {
    Icon,
  },
  props: {
    text: {
      type: String,
      default: "暂无数据",
    },
  },
};
</script>

<style scoped lang="less">
@import url("@/styles/var.less");
.empty-container {
  padding: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: @lightWords;
}
.icon-container {
  color: @gray;
  font-size: 120px;
}
</style>
